Skip to content

tabs: the pane's tab info arrives as hooks.tabInfo in 0.2.2 - #12

Merged
vecnode merged 1 commit into
mainfrom
fix/pane-tab-info-hooks
Nov 27, 2026
Merged

vecnode merged 1 commit into
mainfrom
fix/pane-tab-info-hooks

Conversation

@vecnode

@vecnode vecnode commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Fixes the right bar's tab bodies after the 0.2.2 upgrade.

The bug

The 0.2.2 pane seat declares its inject as hooks: { tabInfo }, so a tab body is handed the tab-info hook under props.hooks.tabInfo. The pack's bodies only knew the 0.2.0 props.useTabInfo prop, so tabInfoNow() returned null and every body drew its "this pane has no tab" state: images, videos, PDFs, audio, diagrams, the editor and History.

The fix

One tabInfoHookOf(props) per body reads props.useTabInfo first, then props.hooks.tabInfo, and yields null when neither is present — so a seat that still hands the prop behaves exactly as before. Seven packages bumped: image alpha.3, video alpha.3, pdf alpha.10, audio alpha.9, diagrams alpha.9, editor alpha.15, gittree alpha.6.

check-client-bundles now renders the image body with hooks: { tabInfo } and asserts it reaches the same opening state as with the prop, plus that a seat with neither shape still renders.

Checks

check-client-bundles (all bundles, including the hooks case) and check-node-routes pass.

The 0.2.2 pane seat declares its inject as hooks: { tabInfo }, so a body is
handed the hook under `hooks`; the pack's bodies only knew the 0.2.0
`props.useTabInfo` prop and therefore rendered their no-tab state for every
image, video, PDF, audio file, diagram, editor and History tab.

One `tabInfoHookOf(props)` per body accepts either shape and yields null when
neither is present, so the old path is unchanged. Versions bumped for the seven
packages; check-client-bundles asserts that the hooks shape reaches the same
opening state as the prop did.
@vecnode
vecnode merged commit 84c24ac into main Nov 27, 2026
1 check passed
@vecnode
vecnode deleted the fix/pane-tab-info-hooks branch November 27, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant